import { Column, CreateDateColumn, UpdateDateColumn } from "typeorm";
import { ApiHideProperty } from "@nestjs/swagger";

export class BaseEntity {
  /**
   * @description: 创建时间
   */
  @ApiHideProperty()
  @CreateDateColumn({ name: "create_time", comment: "创建时间" })
  create_time: Date;

  /**
   * @description: 更新时间
   */
  @ApiHideProperty()
  @UpdateDateColumn({ name: "update_time", comment: "更新时间" })
  update_time: Date;
}
